package com.pingan.haofang.searchcloud.common.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * AMQP配置封装
 * 
 * @author LUYI374
 * @date 2017年3月22日
 * @since 1.0.0
 */
@Component
@ConfigurationProperties(prefix = "amqp")
public class AmqpProperties {

    /**
     * MQ BROKER地址
     */
    private String addresses;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * vhost
     */
    private String virtualHost;

    public String getAddresses() {
        return addresses;
    }

    public void setAddresses(String addresses) {
        this.addresses = addresses;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getVirtualHost() {
        return virtualHost;
    }

    public void setVirtualHost(String virtualHost) {
        this.virtualHost = virtualHost;
    }

}